Skip to content

[mypyc] Add primitives for librt.strings.StringWriter#20624

Merged
JukkaL merged 6 commits intomasterfrom
string-writer-prim
Jan 20, 2026
Merged

[mypyc] Add primitives for librt.strings.StringWriter#20624
JukkaL merged 6 commits intomasterfrom
string-writer-prim

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Jan 20, 2026

As expected, this can make some operations multiple times faster in tight loops. Inline append fast path and a few other simple ops, otherwise call through capsule. This mirrors the primitives for BytesWriter, but they are a bit more complicated due to having to support different string kinds.

@JukkaL JukkaL merged commit 6439b29 into master Jan 20, 2026
16 checks passed
@JukkaL JukkaL deleted the string-writer-prim branch January 20, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants